package com.stud.seckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author Libra
 * @since 2024-03-29
 */
@Data
@TableName("t_user")
@ApiModel(value = "User对象", description = "用户表")
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("密码 MD5加密")
    private String password;

    @ApiModelProperty("盐")
    private String salt;

    @ApiModelProperty("头像")
    private String head;

    @ApiModelProperty("注册日期")
    private Date registerDate;

    @ApiModelProperty("最后一次登录时间")
    private Date lastLoginDate;

    @ApiModelProperty("登录次数")
    private Integer loginCount;

}
